<!doctype html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html class="no-js">
    <head>
        <!-- IE6-8 support of HTML5 elements --> <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <title>Football Betting Advice</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/flags.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/predictions.css" />
        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-34655323-1']);
            _gaq.push(['_trackPageview']);

            (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
        </script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/vendor/modernizr-2.6.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/vendor/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/fba.js"></script>
    </head>
    <body>
        <header>
            <div class="container clearfix">
                <div class="four columns alpha">
                    <a href="<?php echo base_url()?>"><img src="<?php echo base_url();?>resources/img/logo.png" /></a>
                </div>
                <div class="eight columns">
                    <h1 class="main">Football Betting Advice</h1>
                </div>
                <div class="four columns omega">
                    &nbsp;
                </div>
            </div>
            <nav class="clearfix">
                <div class="sixteen columns container">
                    <ul class="navigation">
                        <li><a href="betting_offer">Betting Tournament</a></li>
                        <li><a class="active" href="predictions">Predictions</a></li>
                        <li><a href="<?php echo base_url()?>" rel="home">Home</a></li>
                    </ul>
                </div>
            </nav>
        </header>
            
        <section class="main clearfix">
            <div class="container">
                <div class="row">
                    <div class="three columns alpha">
                        <table class="side-menu-table" >
                            <tr>
                                <td colspan="2"><a href="<?php echo base_url()?>">Show top predictions</a></td>
                            </tr>
                            <?php foreach ($countries as $country):?>
                            <tr>
                                <td style="width:16px;padding:2px;"><div class="<?php if($country->getShortName() != 'WRLD'){echo $country->getShortName() . ' flag';} ?>"></div></td>
                                <td><a href="#" onclick="showLeagues(<?php echo $country->getIDcountry() ?>)"><?php echo $country->getFullName()?></a></td>
                            </tr>
                            <?php endforeach;?>
                        </table>
                    </div>
                    <div class="ten columns">
                        <div class="banner" style="margin-top:5px;">
                            <div class="banner-holder-w460">
                                <?php echo $ads['bet365_2']?>
                            </div>
                        </div>
                        <div id="games">
                        <div class="prediction-list">
                            <h2><label>Top outcome predictions</label></h2>
                            <div class="block dark">
                                <div class="table-text" style="width: 20%">&nbsp;</div>
                                <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
                                <div class="table-text" style="width: 20%">Prediction</div>
                            </div>
                            <?php $i = 1; ?>
                            <?php foreach ($recomended as $item):?>
                            <div class="block light" onclick="showGames(<?php echo $item->getLeague()?>)">
                                <div class="table-text" style="width: 20%"><?php echo $i?></div>
                                <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam()?></div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam()?></div>
                                <div class="table-text" style="width: 20%"><?php echo $item->getTip()?></div>
                            </div>
                            <?php $i = $i + 1 ?>
                            <?php endforeach;?>
                        </div>
                        <div class="prediction-list">
                            <h2><label>Goals 3+</label></h2>
                            <div class="block dark">
                                <div class="table-text" style="width: 20%">&nbsp;</div>
                                <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
                                <div class="table-text" style="width: 20%">Prediction</div>
                            </div>
                            <?php $i = 1; ?>
                            <?php foreach ($recomendedOver as $item):?>
                            <div class="block light" onclick="showGames(<?php echo $item->getLeague()?>)">
                                <div class="table-text" style="width: 20%"><?php echo $i?></div>
                                <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam();?></div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam();?></div>
                                <div class="table-text" style="width: 20%"><?php echo '3+';?></div>
                            </div>
                            <?php $i = $i + 1 ?>
                            <?php endforeach;?>
                        </div>
                        <div class="prediction-list">
                            <h2><label>Goals 0-2</label></h2>
                            <div class="block dark">
                                <div class="table-text" style="width: 20%">&nbsp;</div>
                                <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
                                <div class="table-text" style="width: 20%">Prediction</div>
                            </div>
                            <?php $i = 1; ?>
                            <?php foreach ($recomendedUnder as $item):?>
                            <div class="block light" onclick="showGames(<?php echo $item->getLeague()?>)">
                                <div class="table-text" style="width: 20%"><?php echo $i?></div>
                                <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam();?></div>
                                <div class="table-text" style="width: 4%">-</div>
                                <div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam();?></div>
                                <div class="table-text" style="width: 20%"><?php echo '0-2';?></div>
                            </div>
                            <?php $i = $i + 1 ?>
                            <?php endforeach;?>
                        </div>
                    </div>
                        <a class="back-to-top-predictions" href="predictions">Back</a>
                    </div>
                    <div class="three columns omega">
                        <div class="banner">
                            <div class="banner-holder-w160">
                                <?php echo $ads['clicksor']?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <footer>
            
            <div class="container">
                &copy; football-betting-advice.com 2012 - All predictions calculated in {elapsed_time}s
            </div>
        </footer>
    </body>
</html>
